<?
require_once('../mod_config.php');

$moduol_name = 'Video';
$array_all_cat = array();
$array_per = array();
$array_vid = array();

/*------------------- GET ALL CATEGORY -----------------------*/
$result = array();
$db_query = new db_query(' SELECT cat_id,cat_name
                           FROM category');
$result   = $db_query->resultArray();
$count_result = count($result);
if($result > 0){
   foreach($result as $value){
      $array_all_cat[$value['cat_id']] = $value['cat_name'];
   }
}
$count_cat = count($array_all_cat);

                           
?>